<template>
	<view class="container">
		<view class="diy-search">
			<view class="inner" >
			  <view class="search-input">
				<u-icon size="20" name="search"></u-icon>
				<text>搜索商品</text>
			  </view>
			</view>
		</view>
		<!-- 分类+商品 -->
		<commodity />
	</view>
</template>

<script>
  import Commodity from './components/commodity'
	export default {
		components: {
		  Commodity
		},
		data() {
			return {
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.diy-search {
    padding: 20rpx 20rpx;
    font-size: 26rpx;
	background: #fff;
	  .inner {
		height: 70rpx;
		background: #f1f1f2;
		overflow: hidden;
	    border-radius: 60rpx;
	  }

	  .search-input {
		height: 70rpx;
		color: #666;
		padding: 0 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;

		.search-icon {
		  margin-right: 8rpx;
		}
	  }
    }
</style>
